import request from '@/utils/request'

/**
 * 查询福利活动已发送的短信列表
 * @param data
 * @returns {*}
 */
export function queryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: 'backend/',
    method: 'post',
    data
  })
}

/**
 * 查询发放人数详情
 * @param {*} id
 */
export function get(id) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/',
    method: 'get',
    params: { id }
  })
}

/**
 * 发送短信
 * @param {*} data
 */
export function sendTip(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/',
    method: 'post',
    data
  })
}

